package cn.easyshipping.cloud.common.constant;

public enum ErrorCode {

    serverError("5000", "服务器内部错误"),
    verifyDataError("2000.1", "请求参数错误"),
    verifyPltCodeError("2000.2", "未知来源的请求，请从其他正规渠道登录"),
    verifyAuthError("2000.3", "身份验证失败，请重新登录"),
    paramError("2002", "请求参数不正确"),
    businessErrorCode("1008", "业务异常");

    private String errorCode;
    private String message;

    ErrorCode(String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return message;
    }
}
